package com.project.dao;

import com.project.bean.GymBean;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface GymMapper {
    int deleteByPrimaryKey(Integer Id);

    int insert(GymBean record);

    int insertSelective(GymBean record);
    //通过ID查询对象
    GymBean selectByPrimaryKey(Integer uId);

    int updateByPrimaryKeySelective(GymBean record);

    int updateByPrimaryKey(GymBean record);

    int insertBatchSelective(List<GymBean> records);

    int updateBatchByPrimaryKeySelective(List<GymBean> records);
    
    //分页查询场馆
    public List<GymBean> findByPage(@Param("page")int page,@Param("size")int size);
    //查询场馆数量
    public int findAllNumber();
    //查询所有场馆
    public List<GymBean> findAll();
    
   //注册user的时候在场馆表中添加一个相应的用户
  	int addGymGUId(int cuid);
  	
  	//完善场馆信息
  	int updateGymMessage(@Param("gId")int id,@Param("gMessage")String message);
}